package com.neusoft.basic;

import org.junit.Test;

/**
 * @author 尚硅谷-宋红康
 * @create 23:57
 */
public class InterviewTest2 {

    @Test
    public void test1() {
        int i = 2;
        i *= i++; //i = i * i++
        System.out.println(i);
    }

    @Test
    public void test2() {
        int k = 10;
        k = k + (k++) + (++k);
        System.out.println(k);
    }

    @Test
    public void test3() {
        int i = 10;
        i = i++;
        System.out.println(i);
    }
}
